<?php
/**
 * Created by PhpStorm.
 * User: 68008000
 * Date: 2017/12/5
 * Time: 14:41
 */

namespace app\admin\validate;


use think\Validate;

/**
 * Class Rule
 * @package app\admin\validate
 * 规则验证器
 */
class Rule extends Validate
{
    protected $rule = [
        'title'  => 'require',
        'name' => 'require',
        'nav' => 'require',
    ];

    protected $message = [
        'title.require'  => '请输入规则名称',
        'name.require'  => '请输入规则标识',
        'nav.require'  => '请填写导航',
    ];
}